package com.cw.jeeyt.controller.system;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/homeMgr")
public class HomeController {
    /**
     * 跳转到系统后台用户管理首页
     *
     * @return
     */
    @RequestMapping("/to-login")
    public ModelAndView toLogin() {
        ModelAndView mv = new ModelAndView("superui/login");
        return mv;
    }

    /**
     * 跳转到系统后台用户管理首页
     *
     * @return
     */
    @RequestMapping("/index")
    public ModelAndView toIndex() {
        ModelAndView mv = new ModelAndView("superui/Admin/index_iframe");
        return mv;
    }

    @RequestMapping("/welcome")
    public ModelAndView toWelcome() {
        ModelAndView mv = new ModelAndView("superui/Admin/welcome");
        return mv;
    }

    /**
     * 跳转到系统后台用户管理首页
     *
     * @return
     */
    @RequestMapping("/managerIndex")
    public ModelAndView toManagerIndex() {
        ModelAndView mv = new ModelAndView("superui/supermgr/index");
        return mv;
    }

    @RequestMapping("/manager_welcome")
    public ModelAndView toManagerWelcome() {
        ModelAndView mv = new ModelAndView("superui/supermgr/welcome");
        return mv;
    }
}
